package com.wwmz.pattern.prototype.general;

import lombok.Data;

/**
 * Created by wumz on 2020/9/17 16:37
 */
@Data
public class ConcreatePrototype implements IPrototype {

    private int sex;
    private String name;

    @Override
    public ConcreatePrototype clone() {
        ConcreatePrototype concretePrototype = new ConcreatePrototype();
        concretePrototype.setSex(this.sex);
        concretePrototype.setName(this.name);
        return concretePrototype;
    }
}
